/*
 * @Author Shunzi
 * @Date 2021-07-12 12:22:51
 * @LastEditTime 2021-07-16 12:57:36
 * @LastEditors Shunzi
 * @Description
 * @FilePath /BFFNodeServer/controllers/index.js
 */

const express = require("express");
const router = express.Router();
const _404 = require("./404");
const Books = require("./books");

/* GET home page. */
router.get("/", function (req, res, next) {
  res.redirect("/books");
});

new Books(router);

router.use(_404);

module.exports = router;
